{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>余额</h3>
                <h5></h5>
            </div>
        </div>
    </div>
  <div class="fixed-empty"></div>
    <table class="sc-default-table">
      <tbody>
        <tr class="noborder">
          <td class="required w-100"><label>{$Think.lang.admin_predeposit_sn}:</label></td>
          <td class="rowform">{$info.pdc_sn}</td>
          <td class="tips"></td>
        </tr>
        <tr>
          <td class="required"><label>{$Think.lang.admin_predeposit_membername}:</label></td>
          <td class="rowform">{$info.pdc_member_name}</td>
          <td class="tips"></td>
        </tr>
        <tr>
          <td class="required"><label>{$Think.lang.admin_predeposit_cash_price}:</label></td>
          <td class="rowform">{$info.pdc_amount}&nbsp;{$Think.lang.sc_yuan}</td>
          <td class="tips"></td>
        </tr>
        <tr>
          <td class="required"><label>收款方式:</label></td>
          <td class="rowform">{$info.pdc_method|dict_convert="pdc_method",###}</td>
          <td class="tips"></td>
        </tr>
        <tr>
          <td class="required"><label>提现账号:</label></td>
          <td class="rowform">

            {if $info.pdc_method == '1'}

            支付宝：{$info.pdc_bank_no}<br>

            {elseif $info.pdc_method == 2}

            银行名称：{$info.pdc_bank_name}<br>
            开户行：{$info.pdc_bank_name_2}<br>
            卡号：{$info.pdc_bank_no}<br>

            {elseif $info.pdc_method == 3}

            微信账号：{$info.pdc_bank_no}<br>

            {/if}
            手机号：{$info.pdc_mobilenum}
          </td>
          <td class="tips"></td>
        </tr>
        <tr>
          <td class="required"><label>{$Think.lang.admin_predeposit_cash_shoukuanname}:</label></td>
          <td class="rowform">{$info.pdc_bank_user}</td>
          <td class="tips"></td>
        </tr>
        {notempty name="$info.pdc_payment_time"}
        <tr>
          <td class="required"><label>支付单号:</label></td>
          <td class="rowform">{$info.pdc_trade_no} </td>
          <td class="tips"></td>
        </tr>
        <tr>
          <td class="required"><label>{$Think.lang.admin_predeposit_paytime}:</label></td>
          <td class="rowform">{$info.pdc_payment_time|date='Y-m-d H:i:s',###}
            ( {$Think.lang.admin_predeposit_adminname}: {$info.pdc_payment_admin} ) </td>
          <td class="tips"></td>
        </tr>
        {else}

        <tr class="trade_no">
          <td class="required"><label>支付单号:</label></td>
          <td class="rowform"><input type="text" class="pdc_trade_no txt w-150" placeholder="请输入支付单号"></td>
          <td class="tips"></td>
        </tr>
        <tr class="reject_reason" style="display: none;">
          <td class="required"><label>拒绝原因:</label></td>
          <td class="rowform"><input type="text" class="pdc_reject_reason txt w-150" placeholder="请输入拒绝原因"></td>
          <td class="tips"></td>
        </tr>

        <tr style="display: none;">
          <td class="required"><label>审核状态:</label></td>
          <td class="rowform onoff">
            <label for="state_2" class="cb-enable reject" ><span>不通过</span></label>
            <label for="state_1" class="cb-disable selected pass" ><span>通过</span></label>
            <input class="payment-state" id="state_2" name="state" value="2" type="radio">
            <input class="payment-state" id="state_1" name="state" checked="checked" value="1" type="radio">
          </td>
          <td class="tips"></td>
        </tr>
        {/notempty}
      </tbody>
      <?php if (!intval($info['pdc_payment_state'])) {?>
        <tfoot id="submit-holder">
        <tr class="tfoot">
        <td colspan="3">
        <a class="btn" href="javascript:sc_get_confirm('是否确定操作，操作后不可撤回！','{:url('Predeposit/pdcash_pay',['id'=>$info.pdc_id])}&pdc_trade_no=' + $('.pdc_trade_no').val() + '&pdc_reject_reason=' + encodeURIComponent($('.pdc_reject_reason').val()) + '&pdc_payment_state='+$('.payment-state:checked').val())"><span>审核</span></a>
        </td>
        </tr>
        </tfoot>
     <?php } ?>
    </table>
</div>
<script>
	$('.reject').click(function () {
		$('.trade_no').hide();
		$('.reject_reason').show();
	});
	$('.pass').click(function () {
		$('.trade_no').show();
		$('.reject_reason').hide();
	});
</script>